package cn.shutdown.demo.jvm;

/**
 * 测试获取当前的maxMemory设置
 *
 * 执行时要增加VM参数  -Xmx32M
 * @author jiangwujie
 * @date 2021/5/4
 */
public class ParamTest {

    public static void main(String[] args) {
        System.out.println(Runtime.getRuntime().maxMemory());
    }
}
